<template>
    <el-header class="header">
        <p>公司logo</p>
        <p>欢迎  {{nickName}} <span>登录</span> </p>
    </el-header>
</template>
<script>
export default{
   data() {
       return {
           nickName:'default'
       }
   },
   created() {
       this.nickName=this.$store.state.user.nickname;
       console.log(this.$store.state.user)
   },
}
</script>
<style scoped>
.header{
    display: flex;
   justify-content: space-between;
    width: 100%;
    height: 60px;
    line-height: 60px;
    font-size: 16px;
    border-bottom: 1px solid #EEEEEE;
}
span{
    font-size: 12px;
}
</style>